import request from '@/utils/request'

// 查询尾货信息列表
export function listTailGoodsInfo(query) {
  return request({
    url: '/tailGoodsInfo/tailGoodsInfo/list',
    method: 'get',
    params: query
  })
}

// 查询尾货信息详细
export function getTailGoodsInfo(id) {
  return request({
    url: '/tailGoodsInfo/tailGoodsInfo/' + id,
    method: 'get'
  })
}

// 新增尾货信息
export function addTailGoodsInfo(data) {
  return request({
    url: '/tailGoodsInfo/tailGoodsInfo',
    method: 'post',
    data: data
  })
}

// 修改尾货信息
export function updateTailGoodsInfo(data) {
  return request({
    url: '/tailGoodsInfo/tailGoodsInfo',
    method: 'put',
    data: data
  })
}

// 删除尾货信息
export function delTailGoodsInfo(id) {
  return request({
    url: '/tailGoodsInfo/tailGoodsInfo/' + id,
    method: 'delete'
  })
}

// 导出尾货信息
export function exportTailGoodsInfo(query) {
  return request({
    url: '/tailGoodsInfo/tailGoodsInfo/export',
    method: 'get',
    params: query
  })
}